package spms.data.service.impl;

import spms.data.dao.UserDao;
import spms.data.entity.User;
import spms.data.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import spms.data.util.Page;

import java.util.List;

@Repository
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {

	@Autowired
	UserDao userDao;

	@Override
	public User findByUserId(int id) {
		return userDao.findByUserId(id);
	}

	@Override
	public int count(String tableName) {
		return super.count(tableName);
	}

	@Override
	public Page<User> findPage(int pageNum, int pageSize, Class<User> clazz) throws Exception {
		return super.findPage(pageNum, pageSize, clazz);
	}
}
